//
//  DelayCameraSettingViewController.m
//  NewProject
//
//  Created by Livespro on 2017/6/1.
//  Copyright © 2017年 FZ. All rights reserved.
//

#import "DelayCameraSettingViewController.h"

@interface DelayCameraSettingViewController ()

@property (nonatomic, strong)  TableViewSimple *detailTableView;

@property (nonatomic, strong)  UITextField *delayTimes_tf;//延时时长

@property (nonatomic, strong)  UITextField *repeatCounts_tf;//重复次数

@property (nonatomic, strong)  UITextField *repeatTimes_tf;//重复拍摄间隔时长

@property (nonatomic, assign)  BOOL isFlashLight;//是否开启闪光灯

@end

@implementation DelayCameraSettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)staticViewsWithoutNib{
    
    self.naviStand.title = @"设置延时拍摄";
    
    [self.view addSubview:self.detailTableView];
    
    __weak typeof(self) weakSelf = self;
    [self.detailTableView addSection:^(TableSimpleSection *section, NSUInteger sectionIndex) {
        
        [section addCell:^UITableViewCell *(UITableView *tableView, NSIndexPath *indexPath) {
            
            UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            
            cell.textLabel.font = [UIFont systemFontOfSize:14];
            cell.textLabel.textColor = [UIColor colorWithHexString:@"333333"];
            
            //延时时间
            cell.textLabel.text = @"延时时间";
            
            cell.cellHeight_simple = 44;
            
            weakSelf.delayTimes_tf = [[UITextField alloc]initWithFrame:CGRectMake(100, 0, kScreenWidth - 100, 44)];
            weakSelf.delayTimes_tf.placeholder = @"请输入持卡人姓名";
            weakSelf.delayTimes_tf.font = [UIFont systemFontOfSize:14];
            weakSelf.delayTimes_tf.textColor = [UIColor colorWithHexString:@"666666"];
            
            [cell.contentView addSubview:weakSelf.delayTimes_tf];
            
            [[weakSelf.delayTimes_tf rac_textSignal]subscribeNext:^(NSString * _Nullable x) {
                
                
                
            }];
            
            //分割线
            UIView *bottomLine = [[UIView alloc]initWithFrame:CGRectMake(10, 43.5, kScreenWidth - 10, .5)];
            bottomLine.backgroundColor = [UIColor colorWithHexString:@"dddddd"];
            [cell.contentView addSubview:bottomLine];
            
            weakSelf.delayTimes_tf.text = @"10";
            
            return cell;

        }];
    }];
    
}


- (TableViewSimple *)detailTableView{
    if (!_detailTableView) {
        _detailTableView=[[TableViewSimple alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight-64) style:UITableViewStylePlain];
        
        _detailTableView.showsHorizontalScrollIndicator = NO;
        _detailTableView.showsVerticalScrollIndicator  = NO;
        _detailTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _detailTableView.backgroundColor=pageColor;
        

    }
    return _detailTableView;
}

@end
